from django.shortcuts import render
from .models import AllInfo
from django.http import HttpResponse
from .models import Student
import requests





def Index(requests):
    all_info=AllInfo.objects.all()
    confirm_list=[]
    for info in all_info:
        confirm_list.append(info.confirm)
        #print(confirm_list)
    d=int(confirm_list[0])
    a=int(confirm_list[1])
    c=int(confirm_list[2])
    return render(requests,'index.html',{'d':d,'a':a,'c':c,},)
